/*
 * 存款利率计算器V1.0（3分）
 */

#include <stdio.h>
#include <math.h>

int main() {
	setbuf(stdout, NULL);

	double rate, capital, deposit;
	int n;

	printf("Please enter rate, year, capital:\n");
	scanf("%lf,%d,%lf", &rate, &n, &capital);

	// note: 计算复利
	deposit = capital * pow(1 + rate, n);

	printf("deposit=%.3f\n", deposit);

	return 0;
}